BIN=proc.exe 
CC=gcc
#SRC=$(shell ls *.c)
SRC=$(wildcard *.c)
OBJ=$(SRC:.c=.o) 
LFLAGS=-o 
FLAGS=-c 
RM=rm -f



$(BIN):$(OBJ)
	$(CC) $(LFLAGS) $@ $^

#把当前目录下的所有.c文件展开，生成对应的展开的.o文件
%.o:%.c
	$(CC) $(FLAGS) $<
	@echo "Completing... $^ to $@"
.PHONY:clean
clean:
	$(RM) $(BIN)
